﻿using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TestProject;
internal class MyClass
{
    public int Sum(int x,int y)
    {
        return x + y;
    }

    public int SumAll(int[] x, int[] y)
    {
        var sum = 0;
        foreach (var x2 in x)
        {
            foreach (var y2 in y)
            {
                sum += Sum(x2, y2);
            }
        }
        return sum;
    }
}
